<template>
  <div class="chargeElectric">
    <div>
      <div>
        <h5 style="color: #00FFE6" >{{ chargeElectricDataObj.chargeElectric_ljcdzl }}</h5>
        <span>累计充电总量（万度）</span>
      </div>
      <div>
        <h5 style="color: #0092FF" >{{ chargeElectricDataObj.chargeElectric_drcdzl }}</h5>
        <span>当日充电总量（万度）</span>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  //充电电量
  name: "chargeElectric",
  data() {
    return {
      chargeElectricDataObj: {
        chargeElectric_ljcdzl:0,
        chargeElectric_drcdzl:0
      }
    };
  },
  mounted() {
    fetch(`./testData/chargeElectric.json`, {
      method: "get",
      headers: {
        "Content-Type": "application/json"
      }
    })
      .then(response => response.json())
      .then(data => {
        this.chargeElectricDataObj = data;
      });
  },
  methods: {
  },
  beforeDestroy() {}
};
</script>

<style lang="scss" scoped>
.chargeElectric {
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  > div {
    width: 90%;
    height: 33%;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    > div {
      text-align: center;
      > h5 {
        font-size: x-large;
        font-weight: 800;
        padding-bottom: 10%;
      }
      > span {
        color: #ffffff;
        font-size: initial;
        font-weight: 600;
      }
    }
  }
}
</style>
